package demo06;

/*
 *  StringBuilder类的成员方法：
 *      public StringBuilder reverse()：反转当前StringBuilder对象
 *      返回值：对象本身this
 */
public class Demo03StringBuilder {
    public static void main(String[] args) {
        StringBuilder stringBuilder = new StringBuilder("abcdefg");
        System.out.println(stringBuilder.reverse()); // gfedcba，方法返回值也是对象本身
    }
}
